/*
 * Project: com.mmall.pay.api.constant
 *
 * File Created at 2019-10-28
 *
 * Copyright 2019 CMCC Corporation Limited.
 * All rights reserved.
 *
 * This software is the confidential and proprietary information of
 * ZYHY Company. ("Confidential Information").  You shall not
 * disclose such Confidential Information and shall use it only in
 * accordance with the terms of the license.
 */
package com.mmall.pay.api.constant;

/**
 * @author jianghucoding
 * @date 2019-10-28
 */
public class PayChannel {

    public static final int ALIPAY = 1;

    public static final int WEIXIN = 2;

    public static int getPayChannel(String payChannel) {
        if ("ALIPAY".equals(payChannel)) {
            return ALIPAY;
        } else if ("WEIXIN".equals(payChannel)) {
            return WEIXIN;
        } else {
            throw new IllegalArgumentException("不支持对应的支付渠道");
        }
    }
}
